package com.hsgene.order.constants.v1;

/**
 * 超期标志枚举
 *
 * @author wangbing
 * @version 1.0
 * @date 2019/1/21 14:26
 * Copyright: Copyright (c) 2019
 */
public enum PostponeFlag {

    NORMAL(0, "正常"),

    POSTPONE(1, "超期");

    private final Integer code;

    private final String desc;

    PostponeFlag(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static PostponeFlag getEnum(Integer code) {
        return POSTPONE.getCode().equals(code) ? POSTPONE : NORMAL;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
